import { Equal, Expect } from "@type-challenges/utils";
type Pop<T extends any[]> = T extends [...infer F, infer R] ? [...F] : any;
type cases = [
  Expect<Equal<Pop<[3, 2, 1]>, [3, 2]>>,
  Expect<Equal<Pop<["a", "b", "c", "d"]>, ["a", "b", "c"]>>
];
